package com.foreknow.mapping;

import com.foreknow.bean.Users;

import java.sql.ResultSet;
import java.sql.SQLException;

public class UsersMapping implements EntityMapping{
    @Override
    public Object mapping(ResultSet rs) throws SQLException {
        Users users = new Users();
        users.setAdminid(rs.getInt("adminId"));
        users.setAdminname(rs.getString("adminName"));
        users.setPassword(rs.getString("password"));
        return users;
    }
}
